package com.xxx.Map;

import java.util.Hashtable;
import java.util.Iterator;
import java.util.Set;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/22  9:16
 * @Copyright
 */
public class HashtableDome01 {
    public static void main(String[] args) {
        Hashtable<String, String> hashtable = new Hashtable<>();
        hashtable.put("张三","sda");
        hashtable.put("张四","sdaf");
        hashtable.put("张五","sdafgg");
        Set<String> set = hashtable.keySet();
        Iterator<String> iterator = set.iterator();
        while (iterator.hasNext()){
            System.out.println("iterator = " + iterator.next());
        }


    }
}
